/* @(#)User.java v${project.version} 2011-6-13 下午04:16:33 
 * 
 * ${project.copyright.info}
 * ${project.copyright}
 * ==============================================================================================================*/
package domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * <p>User.</p>
 * 仿Facebook注册界面
 * @see    java.lang.Object
 * @author caochuan@guahaoe.com
 */
@Entity
@XmlRootElement
@Table(name="t_user")
public class User {
	private long         id;
	private String  firstName;
	private String   lastName;
	private String      email;
//	private String   password;
	private String     gender;
	private String dateOfBorn;
	private String 	   status; //状态 有效否 etc.
	
	public User(){
		
	}
	
	public User(String email) {
		super();
		this.email = email;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public long getId() {
		return id;
	}
	public String getFirstName() {
		return firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public String getEmail() {
		return email;
	}
//	public String getPassword() {
//		return password;
//	}
	public String getGender() {
		return gender;
	}
	public String getDateOfBorn() {
		return dateOfBorn;
	}
	public String getStatus() {
		return status;
	}

	public void setId(long id) {
		this.id = id;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public void setEmail(String email) {
		this.email = email;
	}
//	public void setPassword(String password) {
//		this.password = password;
//	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public void setDateOfBorn(String dateOfBorn) {
		this.dateOfBorn = dateOfBorn;
	}
	public void setStatus(String status) {
		this.status = status;
	}
}
